Skip to content

Conversation

Armavica
Copy link
Member

@Armavica Armavica commented Oct 8, 2025

Description

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pytensor--1639.org.readthedocs.build/en/1639/

Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 88.46154% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.65%. Comparing base (5227759) to head (3b3401c).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
pytensor/bin/pytensor_cache.py 33.33% 2 Missing ⚠️
pytensor/scalar/basic.py 81.81% 2 Missing ⚠️
pytensor/sparse/sandbox/sp2.py 0.00% 2 Missing ⚠️
pytensor/xtensor/type.py 0.00% 2 Missing ⚠️
pytensor/link/c/cmodule.py 66.66% 1 Missing ⚠️
...sor/link/numba/dispatch/linalg/decomposition/lu.py 0.00% 1 Missing ⚠️
pytensor/sparse/basic.py 80.00% 1 Missing ⚠️
pytensor/sparse/rewriting.py 0.00% 1 Missing ⚠️
pytensor/sparse/sandbox/sp.py 0.00% 1 Missing ⚠️
pytensor/tensor/conv/abstract_conv.py 80.00% 1 Missing ⚠️
... and 1 more

❌ Your patch status has failed because the patch coverage (88.46%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1639   +/-   ##
=======================================
  Coverage   81.65%   81.65%           
=======================================
  Files         232      232           
  Lines       53081    53087    +6     
  Branches     9403     9403           
=======================================
+ Hits        43342    43348    +6     
  Misses       7286     7286           
  Partials     2453     2453           
Files with missing lines Coverage Δ
pytensor/compile/builders.py 88.66% <ø> (ø)
pytensor/compile/function/pfunc.py 83.33% <100.00%> (ø)
pytensor/compile/function/types.py 80.73% <ø> (ø)
pytensor/compile/mode.py 84.86% <100.00%> (ø)
pytensor/compile/monitormode.py 63.04% <ø> (ø)
pytensor/compile/profiling.py 76.33% <100.00%> (+0.18%) ⬆️
pytensor/configdefaults.py 73.63% <ø> (ø)
pytensor/gradient.py 78.02% <100.00%> (ø)
pytensor/graph/basic.py 86.72% <ø> (ø)
pytensor/graph/features.py 71.09% <ø> (ø)
... and 59 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Armavica Armavica requested a review from ricardoV94 October 8, 2025 18:26
for item in sorted(os.listdir(cache.dirname))
if item.startswith("tmp")
]
items = list(Path(cache.dirname).glob("tmp*"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this sorted by default?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it doesn't matter though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not but yes it doesn't matter here

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, specially the line breaks caused by comments

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the pre-commit hooks configuration to use newer versions of the tools and improves code quality by applying automated fixes from the updated ruff linter. The changes include updating from pre-commit-hooks v5.0.0 to v6.0.0, ruff from v0.7.3 to v0.14.0, and making the hook ID more specific (ruff to ruff-check).

  • Updated pre-commit hooks to newer versions and applied resulting code quality improvements
  • Fixed style issues identified by the newer ruff version across numerous test and source files
  • Improved code consistency and readability through automated formatting and linting fixes

Reviewed Changes

Copilot reviewed 133 out of 135 changed files in this pull request and generated no comments.

File Description
.pre-commit-config.yaml Updated hook versions and configuration
tests/**.py Applied ruff fixes including unused variable prefixing, regex escaping, and formatting improvements
pytensor/**.py Applied similar code quality improvements to source files
Comments suppressed due to low confidence (8)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Armavica
Copy link
Member Author

Armavica commented Oct 9, 2025

Looks great, specially the line breaks caused by comments

Thank you, that's a personal touch :)

@Armavica
Copy link
Member Author

Armavica commented Oct 9, 2025

Thanks for the review @ricardoV94 , I am merging it because it's the kind of PR that will otherwise quickly need rebasing

@Armavica Armavica merged commit 2fdd67a into pymc-devs:main Oct 9, 2025
56 of 57 checks passed
@Armavica Armavica deleted the pre-commit branch October 9, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants